<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="MySQL.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户信息保存</title>
</head>
<body>
	<%
		request.setCharacterEncoding("UTF-8");
		String userId = request.getParameter("userId");
		String userName = request.getParameter("userName");
		String userDlm = request.getParameter("userDlm");
		String userTel = request.getParameter("telephone");
		int resultNum = 0;
		String sql = "update tempUser set user_name='" + userName
				+ "',user_dlm='" + userDlm + "',user_telephone='" + userTel
				+ "' where user_id='" + userId + "'";

		try {
			resultNum = stmt.executeUpdate(sql);
		} catch (SQLException e) {
			out.println("错误提示：" + e.getMessage());
		} finally {
			stmt.close();
			conn.close();
		}

		if (resultNum > 0) {
			out.println("恭喜您，用户信息修改成功。");
			response.setHeader("Refresh", "2;URL=d2018.3.27_dataList.jsp");
		} else {
			out.println("抱歉，用户信息修改失败。");
		}
	%>
</body>
</html>